package com.suray.wcs.service.pojo.rgv.action.util;

import com.suray.wcs.service.pojo.rgv.rgv.protocol.util.RgvMessageType;

public enum RgvActionStatus {
    RGV_NONE_ACTION("无动作"),
    RGV_WAITING_ACTION( "等待动作执行"),
    RGV_DOING_ACTION( "执行动作"),
    RGV_END_ACTION( "执行完成"),
    RGV_FAIL_ACTION( "执行失败"),
    ;

    private String des;

    private final int firstValue = 0;

    RgvActionStatus(String des) {
        this.des = des;
    }

    public String getDes() {
        return des;
    }

    public int getValue() {
        int value = firstValue;
        for (RgvActionStatus type : RgvActionStatus.values()) {
            if (type.equals(this)) {
                return value;
            }

            value++;
        }

        return value;
    }

    public String toString() {
        return this.getDes();
    }
}
